package cn.analysis.common.exception;

/** 基础异常 */
public class BaseException extends RuntimeException {
    private Integer code; // 错误码
    private String module; // 模块
    private String msg; // 错误消息

    public BaseException(Integer code, String module, String msg){
        this.code = code;
        this.module = module;
        this.msg = msg;
    }
    public BaseException(String msg){
        this(null, null, msg);
    }

    public Integer getCode() {
        return code;
    }

    public String getModule() {
        return module;
    }

    public String getMsg() {
        return msg;
    }
}
